package com.baidu.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @Author Mawq
 * @Date 2021/8/30 15:49
 * @Version 1.0
 */
@EnableTransactionManagement
@Configuration
@MapperScan()
public class MybatisPlusConfig {
    /**
     *
     *注入分页插件
     *
     */
    @Bean
    public PaginationInterceptor paginationInterceptor(){
        return new PaginationInterceptor();
    }
}
